home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / CustomMenuPalette / CustomMenu / CustomMenuPalette.m < prev    next >
Text File  |  1995-09-10  |  1KB  |  45 lines

  1.  
  2. //
  3. // Source file      : CustomMenuPalette.m
  4. // Created by       : gideon@berd
  5. // Created on       : Fri Sep 8 09:36:15 NZST 1995
  6. // RCS File         : $Source: /Ramoth/Black.Albatross/CVS/CustomMenu/CustomMenuPalette.m,v $
  7. // Last modified    : $Date: 1995/09/10 22:38:01 $
  8. // Last modified by : $Author: gideon $
  9. // Current Revision : $Revision: 1.1.1.1 $
  10. //
  11.  
  12. static const char RCSId[] = "$Id: CustomMenuPalette.m,v 1.1.1.1 1995/09/10 22:38:01 gideon Exp $";
  13.  
  14. #import "CustomMenuPalette.h"
  15. #import "CustomMenu.subproj/DraggableMenu.h"
  16.  
  17.  
  18. @implementation CustomMenuPalette
  19.  
  20. - (const char *)version
  21. {
  22.     return RCSId;
  23. }
  24.  
  25. - finishInstantiate 
  26. {
  27.     id    idBundle;
  28.     id    idImage;
  29.     char buf[MAXPATHLEN + 1];
  30.  
  31.     draggableMenuObject = [[DraggableMenu alloc] init];
  32.     [self associateObject:draggableMenuObject 
  33.         type:IBObjectPboardType with:customMenuButton];
  34.         
  35.     idBundle = [NXBundle bundleForClass:[self class]];
  36.     [idBundle getPath:buf forResource:"CustomMenu" ofType:"tiff"];
  37.     idImage = [[NXImage alloc] initFromFile:buf];
  38.     [customMenuButton setImage:idImage];
  39.     
  40.     [super finishInstantiate];
  41.     return self;
  42. }
  43.  
  44. @end
  45.